package com.example.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
public class Comment {

    private Long id;
    private Long orderId;
    private String content;
    private Long userId;
    private String founder;
    private Date foundTime;
    private String updater;
    private Date updateTime;

    public Comment() {
    }

    public Comment(Long id, Long orderId, String content, Long userId, String founder, Date foundTime, String updater, Date updateTime) {
        this.id = id;
        this.orderId = orderId;
        this.content = content;
        this.userId = userId;
        this.founder = founder;
        this.foundTime = foundTime;
        this.updater = updater;
        this.updateTime = updateTime;
    }

    public Comment(Long orderId, String content, Long userId, String founder, Date foundTime) {
        this.orderId = orderId;
        this.content = content;
        this.userId = userId;
        this.founder = founder;
        this.foundTime = foundTime;
        this.updater = null;
        this.updateTime = null;
    }
}
